package com.feng.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author: 丰
 * @date: 2022/12/14 15:47
 */
@Data
@ApiModel("新闻视图类")
public class NewsVo {
    @ApiModelProperty(name = "id")
    private Integer id;
    @ApiModelProperty(hidden = true)
    private String createTime;
    @ApiModelProperty(hidden = true)
    private String updateTime;
    @ApiModelProperty(hidden = true)
    private Integer enable;

    @ApiModelProperty(name = "显示优先级(0.推荐，1.置顶，2.推荐)", example = "0")
    private Integer state;
    @ApiModelProperty(name = "标题", example = "三体动画将于今日凌晨播出")
    private String name;
    @ApiModelProperty(name = "作者", example = "丰")
    private String author;
    @ApiModelProperty(name = "新闻简述", example = "三体动画将于今日凌晨播出")
    private String title;
    @ApiModelProperty(name = "新闻正文", example = "三体动画将于今日凌晨播出")
    private String content;
    @ApiModelProperty(name = "图片", example = "")
    private String picture;
    @ApiModelProperty(hidden = true)
    private Integer categoryId;
    @ApiModelProperty(hidden = true)
    private String cateName;
}
